package com.hnx.admin.aurora.jwt.api;

import java.util.concurrent.TimeUnit;

public interface JwtAPI {
    public final static String DEFAULT_SECRET = "abcdadminefgnhm";
    public final static String TOKEN_PREFIX = "Bearer ";
    public final static String PREFIX = "token";
    public static final String ISSUER = "admin_aurora";
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";
    public static final long DEFAULT_ACCESS_EXPIRE = TimeUnit.MINUTES.toMillis(20);
    public static final long DEFAULT_REFRESH_EXPIRE = TimeUnit.DAYS.toMillis(7);
    public static final long DEFAULT_CLOCK_SKEW = TimeUnit.SECONDS.toMillis(30);
    public static final String HEADER = "Authorization";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
}
